Skip to content

Conversation

@liwilliam2021
Copy link
Contributor

@liwilliam2021 liwilliam2021 commented Jul 2, 2025

Pro: it's less annoying to delete the last message, it doesn't make sense to ask the user if they want to delete one message or all messages if it's the last message

Cons: maybe we want to force a confirmation. If so, I can also add a separate panel in this case


Important

Skips confirmation dialog for last message deletion/editing in webviewMessageHandler.ts, defaulting to "just this message" option, with updated tests in ClineProvider.spec.ts.

  • Behavior:
    • Skips confirmation dialog for deleting or editing the last message in handleMessageModificationsOperation in webviewMessageHandler.ts.
    • Defaults to "just this message" option for last message without showing dialog.
  • Tests:
    • Update test cases in ClineProvider.spec.ts to verify new behavior for last message deletion and editing.
    • Ensure tests cover scenarios for "just this message" and "this and subsequent messages" options.

This description was created by Ellipsis for dd5e491. You can customize this summary. It will automatically update as commits are pushed.

@liwilliam2021 liwilliam2021 requested review from cte, jr and mrubens as code owners July 2, 2025 23:57
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement New feature or request labels Jul 2, 2025
@delve-auditor
Copy link

delve-auditor bot commented Jul 2, 2025

No security or compliance issues detected. Reviewed everything up to dd5e491.

Security Overview
  • 🔎 Scanned files: 1 changed file(s)
Detected Code Changes
Change Type Relevant files
Enhancement ► ClineProvider.spec.ts
    Added test cases for message editing functionality
► webviewMessageHandler.ts
    Enhanced message editing and deletion logic

Reply to this PR with @delve-auditor followed by a description of what change you want and we'll auto-submit a change to this PR to implement it.

@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Jul 3, 2025
@daniel-lxs
Copy link
Member

Hey @liwilliam2021 I noticed that this PR is pointing to the will/editable-prompts branch, was that intentional?

In that case you can probably wait until #5359 gets merged and you can point this PR at main.

@daniel-lxs daniel-lxs moved this from Triage to PR [Needs Prelim Review] in Roo Code Roadmap Jul 3, 2025
@hannesrudolph hannesrudolph added PR - Needs Preliminary Review and removed Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. labels Jul 3, 2025
@daniel-lxs daniel-lxs moved this from PR [Needs Prelim Review] to PR [Changes Requested] in Roo Code Roadmap Jul 3, 2025
@liwilliam2021
Copy link
Contributor Author

Hey @liwilliam2021 I noticed that this PR is pointing to the will/editable-prompts branch, was that intentional?

In that case you can probably wait until #5359 gets merged and you can point this PR at main.

Yes that was the intention! Will wait

Base automatically changed from will/editable-prompts to main July 8, 2025 14:42
@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Jul 8, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Jul 9, 2025
@github-project-automation github-project-automation bot moved this from PR [Changes Requested] to Done in Roo Code Roadmap Jul 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request PR - Changes Requested size:XL This PR changes 500-999 lines, ignoring generated files.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants